package com.jf.classes.domain;

import java.util.List;

import com.jf.students.domain.Students;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jf.common.annotation.Excel;
import com.jf.common.core.domain.BaseEntity;

/**
 * 班级信息对象 classes
 *
 * @author ruoyi
 * @date 2025-05-13
 */
public class Classes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级ID */
    private Long id;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String name;

    /** 年级 */
    @Excel(name = "年级")
    private Long grade;

    /** 班主任 */
    @Excel(name = "班主任")
    private String teacher;

    /** 学生信息信息 */
    private List<Students> studentsList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setGrade(Long grade)
    {
        this.grade = grade;
    }

    public Long getGrade()
    {
        return grade;
    }

    public void setTeacher(String teacher)
    {
        this.teacher = teacher;
    }

    public String getTeacher()
    {
        return teacher;
    }

    public List<Students> getStudentsList()
    {
        return studentsList;
    }

    public void setStudentsList(List<Students> studentsList)
    {
        this.studentsList = studentsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("grade", getGrade())
            .append("teacher", getTeacher())
            .append("createTime", getCreateTime())
            .append("studentsList", getStudentsList())
            .toString();
    }
}
